package com.blockchain.coupon.entity;

/**
 * Created by wufaxiang on 2017/1/13.
 * 优惠券实体类(一类优惠券)
 */
public class Coupon {

    private String couponId;                // 优惠券id
    private String couponRuleId;            // 优惠券规则id
    private String couponStatus;            // 优惠券状态　１．发起申请 2.申请失败 3.申请成功，持有中　　４：申请使用中　５：申请使用失败　６:已使用　
    private String couponIssueTime;         // 优惠券申请时间
    private String couponAmount;			// 优惠券金额
    private String couponUseTime;			// 优惠券使用时间
    private String consumerId;				// 当前持有者id
    private String couponContractAddress;   // 合约地址

    @Override
    public String toString() {
        return "Coupon{" +
                "couponId='" + couponId + '\'' +
                ", couponRuleId='" + couponRuleId + '\'' +
                ", couponStatus='" + couponStatus + '\'' +
                ", couponIssueTime='" + couponIssueTime + '\'' +
                ", couponAmount='" + couponAmount + '\'' +
                ", couponUseTime='" + couponUseTime + '\'' +
                ", consumerId='" + consumerId + '\'' +
                ", couponContractAddress='" + couponContractAddress + '\'' +
                '}';
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getCouponRuleId() {
        return couponRuleId;
    }

    public void setCouponRuleId(String couponRuleId) {
        this.couponRuleId = couponRuleId;
    }

    public String getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(String couponStatus) {
        this.couponStatus = couponStatus;
    }

    public String getCouponIssueTime() {
        return couponIssueTime;
    }

    public void setCouponIssueTime(String couponIssueTime) {
        this.couponIssueTime = couponIssueTime;
    }

    public String getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(String couponAmount) {
        this.couponAmount = couponAmount;
    }

    public String getCouponUseTime() {
        return couponUseTime;
    }

    public void setCouponUseTime(String couponUseTime) {
        this.couponUseTime = couponUseTime;
    }

    public String getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(String consumerId) {
        this.consumerId = consumerId;
    }

    public String getCouponContractAddress() {
        return couponContractAddress;
    }

    public void setCouponContractAddress(String couponContractAddress) {
        this.couponContractAddress = couponContractAddress;
    }
}